<%-- 
    Document   : login
    Created on : Sep 10, 2013, 12:24:41 PM
    Author     : Dan Joas
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
    <head>
        <title>Login Page</title>

    </head>
    <body onload='document.f.j_username.focus();'>
        <h3>Login with Username and Password (Custom Page)</h3>

        <form name='f' action="<c:url value='j_spring_security_check' />"
              method='POST'>

            <table>
                <tr>
                    <td>User:</td>
                    <td><input type='text' name='j_username' value=''>
                    </td>
                </tr>
                <tr>
                    <td>Password:</td>
                    <td><input type='password' name='j_password' />
                    </td>
                </tr>
                <tr>
                    <td colspan='2'><input name="submit" type="submit"
                                           value="submit" />
                    </td>
                </tr>
                <tr>
                    <td colspan='2'><input name="reset" type="reset" />
                    </td>
                </tr>
            </table>

        </form>

        <table border="1" style="border-collapse:collapse;">
            <tr>
                <td><strong>Usuario</strong></td>
                <td><strong>Clave</strong></td>
                <td><strong>Role</strong></td>
            </tr>
            <tr>
                <td>user</td>
                <td>user</td>
                <td>ROLE_USER</td>
            </tr>
            <tr>
                <td>admin</td>
                <td>admin</td>
                <td>ROLE_ADMIN</td>
            </tr>
            <tr>
                <td>su</td>
                <td>su</td>
                <td>ROLE_SU</td>
            </tr>
        </table>
    </body>
</html>
